package com.treasure.service.config;

import com.treasure.service.filter.AuthHandlerInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

import java.io.Serializable;

/**
* @Description:    java类作用描述
* @Author:         panxinwen
* @CreateDate:     2018/11/25 10:19
* @Version:        1.0
*/
@Component
@Configuration
public class MobileMvcConfig extends WebMvcConfigurerAdapter implements Serializable {

    private static final long serialVersionUID = -7074628357528987887L;

    @Override
    public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(new AuthHandlerInterceptor()); }
}
